﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace NCacheDClient.Configuration
{

    public class NCacheDServerElement : ConfigurationElement
    {
        public NCacheDServerElement(String host, int port)
        {
            this.Host = host;
            this.Port = port;
        }

        public NCacheDServerElement()
        {
            // Attributes on the properties provide default values.
        }

        [ConfigurationProperty("Host", IsRequired = true)]
        public string Host
        {
            get
            {
                return (string)this["Host"];
            }
            set
            {
                this["Host"] = value;
            }
        }

        [ConfigurationProperty("Port", IsRequired = true)]
        public int Port
        {
            get
            {
                return (int)this["Port"];
            }
            set
            {
                this["Port"] = value;
            }
        }

    }
}
